package models;

import java.util.*;

import javax.persistence.*;

import play.data.validation.Required;
import play.db.jpa.Model;

@Entity
public class RelationsBetweenTopic extends Model {
	@OneToOne
	public Topic topic1;
	@OneToOne
	public Topic topic2;
	public String relation;

	public RelationsBetweenTopic(Topic top1, Topic top2, String relation) {
		topic1 = top1;
		topic2 = top2;
		this.relation = relation;
	}
}